{{include file='home/header.tpl'}}
<div id="rotation">
	<div class="shadow">
		<ul class="rotation-list">
			{{foreach $hotnews as $news}}
			<li class="rotation-tab" data-title="{{h(str_cut($news.Title,80))}}" data-brief="{{$news.Description}}" data-href="{{site_url("home/content?Id={{$news.Id}}")}}">
				<a href="{{site_url("home/content?Id={{$news.Id}}")}}" target="_blank">
					<img src="{{base_url()}}/images/{{$news.Image}}">
				</a>
			</li>
			{{/foreach}}
			<div class="indicators">
				<span class="indicator active"></span>
				<span class="indicator"></span>
				<span class="indicator"></span>
				<span class="indicator"></span>
				<span class="indicator"></span>
			</div>
		</ul>
		<div class="banner">
			<a class="banner-title" target="_blank"></a>
			<a class="banner-info" target="_blank"></a>
			<div class="hotNewsBtn">
				<a href="{{site_url("home/ArticleList?CateId=11")}}" >热点新闻 >></a>
			</div>
		</div>
	</div>
</div>
<div id="content">
	<div class="container">
		<div class="offices">
			<div class="office oth1">
				<div class="office-name">
					<span>学院办公室</span>
					<a href="{{site_url("home/ArticleList?CateId=12")}}" >more</a>
				</div>
				<ul class="office-list">
					{{foreach $data1 as $da1}}
					<li>
						<a href="{{site_url("home/content?Id={{$da1.Id}}")}}" >{{str_cut(h($da1.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da1.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div class="office oth2">
				<div class="office-name">
					<span>科学研究</span>
					<a href="{{site_url("home/ArticleList?CateId=16")}}" >more</a>
				</div>
				<ul class="office-list">
					{{foreach $data5 as $da5}}
					<li>
						<a href="{{site_url("home/content?Id={{$da5.Id}}")}}" >{{str_cut(h($da5.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da5.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div class="office oth3">
				<div class="office-name">
					<span>人事人才</span>
					<a href="{{site_url("home/ArticleList?CateId=109")}}" >more</a>
				</div>
				<ul class="office-list">
				        {{foreach $data8 as $da8}}
					<li>
						<a href="{{site_url("home/content?Id={{$da8.Id}}")}}">{{str_cut(h($da8.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da8.Time) < 3 }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div class="office oth4">
				<div class="office-name">
					<span>国际合作</span>
					<a href="{{site_url("home/ArticleList?CateId=13")}}" >more</a>
				</div>
				<ul class="office-list">
					{{foreach $data2 as $da2}}
					<li>
						<a href="{{site_url("home/content?Id={{$da2.Id}}")}}" >{{str_cut(h($da2.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da2.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div class="office oth5">
				<div class="office-name">
					<span>本科生教育</span>
					<a href="{{site_url("home/ArticleList?CateId=14")}}">more</a>
				</div>
				<ul class="office-list">
					{{foreach $data3 as $da3}}
					<li>
						<a href="{{site_url("home/content?Id={{$da3.Id}}")}}" >{{str_cut(h($da3.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da3.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div class="office oth6">
				<div class="office-name">
					<span>研究生教育</span>
					<a href="{{site_url("home/ArticleList?CateId=15")}}">more</a>
				</div>
				<ul class="office-list">
					{{foreach $data4 as $da4}}
					<li>
						<a href="{{site_url("home/content?Id={{$da4.Id}}")}}" >{{str_cut(h($da4.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da4.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			
			<div class="office oth7">
				<div class="office-name">
					<span>学生事务</span>
					<a href="{{site_url("home/ArticleList?CateId=17")}}" >more</a>
				</div>
				<ul class="office-list">
					{{foreach $data6 as $da6}}
					<li>
						<a href="{{site_url("home/content?Id={{$da6.Id}}")}}"  >{{str_cut(h($da6.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da6.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div class="office oth8">
				<div class="office-name">
					<span>继续教育</span>
					<a href="{{site_url("home/ArticleList?CateId=18")}}" >more</a>
				</div>
				<ul class="office-list">
					{{foreach $data7 as $da7}}
					<li>
						<a href="{{site_url("home/content?Id={{$da7.Id}}")}}" >{{str_cut(h($da7.Title),68)}}</a>
						{{if timediff(strtotime(date('Y-m-d')),$da7.Time) < 3  }}
						<span><img src="{{base_url()}}Public/img/new.png" alt=""></span>
						{{/if}}
					</li>
					{{/foreach}}
				</ul>
			</div>
		</div>
		<div class="sidebar">
			<div class="tabs">  
				<p>重要通知&nbsp;&nbsp;Important Notice</p>
			</div>
			<div class="tab-content">
				<div class="tab-pane">
					<ul id="roll">
						{{assign var='i' value='0'}}
						{{foreach $import as $aca}}
						{{assign var='i' value="{{$i+1}}"}}
						{{if $i< 8 }}
						<li>
							<a href="{{site_url("home/content?Id={{$aca.Id}}")}}">
								<div class="date">
									<p class="year">{{date('Y',$aca.Time)}}.{{date('m',$aca.Time)}}</p>
									<p class="day">{{date('d',$aca.Time)}}</p>
								</div>
								<p class="tab-info">{{h(str_cut($aca.Title,90))}}</p>
							</a>
						</li>
						{{else}}
						<li>
							<a href="{{site_url("home/content?Id={{$aca.Id}}")}}">
								<p class="tab-info-normal">{{h(str_cut($aca.Title,90))}}</p>
							</a>
						</li>
						{{/if}}
						{{/foreach}}
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="column">
	<div class="container">
		<div class="column-box">
			<p class="chinese-name">榜样</p>
			<p class="english-name">Model Group</p>
			<a href="{{site_url("home/content?Id={{$model.0.Id}}")}}" target="_blank" style="display:block;">
				<img src="{{base_url()}}/images/{{$model.0.Image}}" style="display:block;">
				<p class="model-info">{{h($model.0.Title)}}</p>
				<p class="model-detail">{{h(str_cut($model.0.Description,170))}}</p>
			</a>
			<a href="{{site_url("home/ArticleList?CateId=21")}}" class="model-more" target="_blank">more</a>
		</div>
		<div class="column-box column-middle">
			<p class="chinese-name">院企合作</p>
			<p class="english-name">Enterprise Cooperation</p>
			<a href="javascript:;" target="_blank">
				<img src="{{base_url()}}/Public/img/enterprise.png">
			</a>
			<ul class="enterprise-info">
				{{foreach $cooperation as $cooper}}
				<li>
					<a href="{{site_url("home/content?Id={{$cooper.Id}}")}}" target="_blank">{{str_cut(h($cooper.Title),70)}}</a>
				</li>
				{{/foreach}}
			</ul>
			<a href="{{site_url("home/ArticleList?CateId=68")}}" class="model-more" target="_blank">more</a>
		</div>
		<div class="column-box">
			<p class="chinese-name">学院专栏</p>
			<p class="english-name">School Column</p>
			<a  href="http://uestc-gcxlzx.com/" class="school-column" target="_blank">
				<table>
					<tr>
						<td class="column-name">工程训练中心</td>
					</tr>
				</table>
				<img src="{{base_url()}}/Public/img/column_1.png">
			</a>
			<a  href="{{site_url('home/Judge?Id=76')}}" class="school-column" target="_blank">
				<table>
					<tr>
						<td class="column-name">电子科技大学</br>机器人队</td>
					</tr>
				</table>
				<img src="{{base_url()}}/Public/img/column_2.png">
			</a>
			<a  href="{{site_url('home/Judge?Id=77')}}" class="school-column" target="_blank">
				<table>
					<tr>
						<td class="column-name">机械电子工程学院</br>创新创业中心</td>
					</tr>
				</table>
				<img src="{{base_url()}}/Public/img/column_3.png">
			</a>
		</div>
	</div>
</div>
{{include file='home/footer.tpl'}}
